package API.Stream.Basic;

import java.util.HashMap;
import java.util.Map.Entry;

public class FakeMapStream {
    public static void main(String[] args) {
        HashMap map = new HashMap();
        map.put("key1", "value1");
        map.put("key2", "value2");
        map.put("key3", "value3");
        map.put("key4", "value4");
        map.put("key5", "value5");
        map.entrySet().stream().forEach(s -> System.out.println(s));
    }
}
